﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include <QMainWindow>

#include "TCP_UDP_Assistant/tcpassistant.h"
#include "TCP_UDP_Assistant/tcpserverassistant.h"
#include "TCP_UDP_Assistant/udpassistant.h"
#include "TCP_UDP_Assistant/udpassistant.h"
#include "UI_CFG/uiparameterize.h"

#if defined(_MSC_VER) && (_MSC_VER >= 1600)
# pragma execution_character_set("utf-8")
#endif

QT_BEGIN_NAMESPACE

namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

   void mainSetCurrentWidget(uint8_t index);//设置界面切换

private:
    Ui::MainWindow *ui;

    TcpAssistant* tcpassistant;
    TcpServerAssistant* tcpserverassistant;
    UdpAssistant* udpassistant;
    uiParameterize* uiparameterize;

private slots:
        void timerUpDate();
        void on_pushButton_device_clicked();
        void on_pushButton_cfg_clicked();
};
#endif // MAINWINDOW_H
